<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('油品号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-flag" data-rule="required" class="form-control selectpicker"  name="row[gasset_id]">
                <option value="" >请选择</option>
                {foreach name="gassetList" item="vo"}
                <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('供应商')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-flag" data-rule="required" class="form-control selectpicker" name="row[gassupplier_id]">
                <option value="" >请选择</option>
                {foreach name="gassupplierList" item="vo"}
                <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('油品密度')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-density" class="form-control" name="row[density]" type="text" value="">（g/ml）
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('采购吨数')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-num" class="form-control" name="row[num]" type="text" value="">（吨）
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('采购单价')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" name="row[price]" type="text" value="">（元/吨）
        </div>
    </div>
    <div class="form-group">
        <div class="col-xs-12 col-sm-8">
            <input id="c-oilpurchase_id" class="form-control" name="row[oilpurchase_id]" type="hidden" value="{$oilpurchase_id|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
